package controller;

import java.util.Iterator;

import controller.factories.ControllerBuilder;
import controller.listeners.AbstractActionListener;
import controller.listeners.KeyboardListener;

public class ControllerDriver
{
	public static void main(String args[])
	{
		// DUMMY OBJECT
		ModelDummy m = new ModelDummy();
		ControllerBuilder cb = new ControllerBuilder(m);
		cb.contruct();
		
		Iterator<KeyboardListener> i = cb.getKList().iterator();
		while( i.hasNext() )
		{
			i.next().killTheMotherfucker();
		}
		Iterator<AbstractActionListener> j = cb.getAList().iterator();
		while( j.hasNext() )
		{
			j.next().killTheMotherfucker();
		}
	}
}
